﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Activities;

namespace TeamDeploy.Activities.Test
{
    [TestClass]
    public class XCopyTests
    {
        [TestMethod]
        public void TestXCopy()
        {
            var workflow = new XCopy();
            workflow.TargetMachine = Environment.MachineName;
            workflow.SourceSharePath = @"\\dlvrn2010md\BuildDropFolder\TestWebDeploy\TestWebDeploy_20101009.15";
            workflow.DestinationLocalPath = @"C:\temp\testest";
            workflow.RemoteExecutePathFilename = @"c:\pstools\psexec2.exe";
            //workflow.RemoteExecutePathFilename = @"c:\pstools\psexec2.exe";
            //workflow.MSIPathFilename = Path.Combine(@"C:\InstallUninstallTests.msi");
            //workflow.ExtraArgs = "adfs";
            var workflowInvoker = new WorkflowInvoker(workflow);

            workflowInvoker.Invoke();

            Assert.IsTrue(true);
        }

    }
}
